//
//  DBYDestionationFlowLayout.h
//  MemoryTravel
//
//  Created by dllo on 15/12/30.
//  Copyright © 2015年 fcx. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MyCollectionFlowLayoutDelegate <UICollectionViewDelegateFlowLayout>

//重写系统协议方法 获取每个item大小(如果不重写的话,在当前.m文件里得不到size,没有代理人去调用该方法来获得size)
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath;


@end

@interface DBYDestionationFlowLayout : UICollectionViewFlowLayout

@property (nonatomic, assign) id<MyCollectionFlowLayoutDelegate> delegate;

@property (nonatomic, retain) NSMutableArray *array;


@property(nonatomic,assign)CGFloat maxHeight;//记录当前contentsize大小


@end
